//1 引入连接数据库的工具类
let mongoose = require('../util/dbUtile')
// 2 创建数据结构（用户的）
let shopSchema = mongoose.Schema({
    image:String,
    name:String,
    address:String,
    latitude:Number,
    longitude:Number,
    distance:Number,
    ontime:String,
    status:Number
});
//3 创建数据的模型
let shopModel = mongoose.model('shopModel', shopSchema, "shop");


//4 导出用户模型(***)
module.exports = shopModel